|
|
Multimedia API ReferenceSeptember 12, 2016 | 24.2 Release |
Definition at line 59 of file EventProvider.h.


Public Member Functions | |
| virtual Status | getAvailableEventTypes (std::vector< EventType > *types) const =0 |
| Returns a list of event types that this provider can generate. More... | |
| virtual EventQueue * | createEventQueue (const std::vector< EventType > &eventTypes, Status *status=NULL)=0 |
| Creates an event queue for events of the given type(s) More... | |
| virtual Status | waitForEvents (const std::vector< EventQueue * > &queues, uint64_t timeout=TIMEOUT_INFINITE)=0 |
| Waits for and transfers any pending events from the provider to the provided queues. More... | |
| virtual Status | waitForEvents (EventQueue *queue, uint64_t timeout=TIMEOUT_INFINITE)=0 |
| Variant of waitForEvents() that waits for only one EventQueue. More... | |
Static Public Member Functions | |
| static const InterfaceID & | id () |
Protected Member Functions | |
| ~IEventProvider () | |
|
inlineprotected |
Definition at line 120 of file EventProvider.h.
|
pure virtual |
Creates an event queue for events of the given type(s)
| [in] | eventTypes | The list of event types for the queue. |
| [out] | status | An optional pointer to return success/status. |
|
pure virtual |
Returns a list of event types that this provider can generate.
| [out] | types | A vector that will be populated by the available event types. |
|
inlinestatic |
Definition at line 62 of file EventProvider.h.
|
pure virtual |
Waits for and transfers any pending events from the provider to the provided queues.
Ownership of all events transfered to a queue will be passed from the provider to the queue, and these event object pointers will remain valid until the queue is destroyed or until the next call to this function with that queue. In other words, any events in a queue will be destroyed when the queue is provided to another call of this function, regardless of whether or not it receives any new events, or when the queue is destroyed.
If more than one given queue accepts events of the same type, only the first of these queues will receive events of that type.
Any events that are not copied to queues by this function are left in the provider until they are queried using a queue receiving events of that type.
If there are no pending events of the requested types at the time this function is called, it will block until one is available or a timeout occurs.
| [in] | queues | The list of queues to transfer events to. |
| [in] | timeout | The maximum time (in nanoseconds) to wait for new events. |
|
pure virtual |
Variant of waitForEvents() that waits for only one EventQueue.